package com.antis.olsl.data.adapter;

import com.antis.olsl.data.R;
import com.antis.olsl.library.bean.GoodsFiledInfo;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

/**
 * 配送字段列表 用于配送单详情信息的展示
 * Created by qi.yang on 2020/3/24 0008.
 */

public class DistributionInfoFiledListAdapter extends BaseQuickAdapter<GoodsFiledInfo, BaseViewHolder> {
    public DistributionInfoFiledListAdapter(List<GoodsFiledInfo> data) {
        super(R.layout.listitem_goods_filed, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GoodsFiledInfo item) {
        helper.setText(R.id.tv_filedName, item.getName())
                .setText(R.id.tv_filedValue, item.getValue());
    }

}
